function toggle(id) {
    var state = document.getElementById(id).style.display;
    if (state == 'block') {
        document.getElementById(id).style.display = 'none';
    } else {
        document.getElementById(id).style.display = 'block';
    }
}

function confirmDeleteCourse(delUrl) {
    if (confirm("Are you sure you want to delete the course and all the content?")) {
        document.location = delUrl;
    }
}

function confirmDeleteModule(delUr4) {
    if (confirm("Are you sure you want to delete the module and all the content?")) {
        document.location = delUr4;
    }
}

function confirmDeleteUser(delUr2) {
    if (confirm("Are you sure you want to delete this user?")) {
        document.location = delUr2;
    }
}

function confirmDeleteCombideal(delUr3) {
    if (confirm("Are you sure you want to delete the combideal?")) {
        document.location = delUr3;
    }
}